package com.smarthospital.dao.daoService;

import com.smarthospital.dao.mapper.SHDictionaryDao;
import com.smarthospital.entity.pojo.SHDictionary;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SHDictionaryDaoService{

    @Resource
    private SHDictionaryDao sHDictionaryDao;

    public int insert(SHDictionary pojo){
        return sHDictionaryDao.insert(pojo);
    }

    public int insertSelective(SHDictionary pojo){
        return sHDictionaryDao.insertSelective(pojo);
    }

    public int insertList(List<SHDictionary> pojos){
        return sHDictionaryDao.insertList(pojos);
    }

    public int update(SHDictionary pojo){
        return sHDictionaryDao.update(pojo);
    }

    public List<SHDictionary> queryBydictionaryCode(String dictionary) {
        return sHDictionaryDao.queryBydictionaryCode(dictionary);
    }

    //后续用jetcache做缓存
    public List<SHDictionary> queryIndictionaryCode(List<String> strings) {
        return sHDictionaryDao.queryIndictionaryCode(strings);
    }
}
